package com.xwh.shop.user.service.service.impl;

import com.xwh.shop.user.model.entity.Role;
import com.xwh.shop.user.service.mapper.RoleMapper;
import com.xwh.shop.user.service.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import lombok.experimental.PackagePrivate;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xwh
 * @since 2025-07-15
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Resource
    private RoleMapper roleMapper;
    @Override
    public Role getRoleByAdminId(Long id) {
        return roleMapper.getRoleByAdminId(id);
    }
}
